package com.cn.wanxi.springsecurity.mapper;

import com.cn.wanxi.springsecurity.domain.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 后台用户表 Mapper 接口
 * </p>
 *
 * @author 吉酱
 * @since 2022-09-26
 */
public interface UserMapper extends BaseMapper<User> {


    @Select("select * from wx_user where username = #{username}")
    User selectByUsername(String username);

    @Select("select * from wx_user ")
    List<User> selectAll();
}
